package cn.tedu.straw.portal.service;

import cn.tedu.straw.portal.dto.PostQuestionDTO;
import cn.tedu.straw.portal.model.Question;
import cn.tedu.straw.portal.vo.QuestionDetailVO;
import cn.tedu.straw.portal.vo.QuestionListItemVO;
import cn.tedu.straw.portal.vo.QuestionSimpleVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-11-11
 */
public interface IQuestionService extends IService<Question> {

    void post(PostQuestionDTO postQuestionDTO, Integer userId, String userNickName);

    QuestionDetailVO getDetail(Integer questionId);

    List<QuestionSimpleVO> getMostHitsList();

    PageInfo<QuestionListItemVO> getMyQuestions(Integer userId, Integer pageNum);

}
